﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.ServiceModel.Web;
using RESTServices.Dominio;

namespace RESTServices
{
    [ServiceContract]
    public interface ICombos
    {

            [OperationContract]
            [WebInvoke(Method = "POST", UriTemplate = "Combos", ResponseFormat = WebMessageFormat.Json)]
            Combo CrearCombo(Combo comboAcrear);

            [OperationContract]
            [WebInvoke(Method = "GET", UriTemplate = "Combos/{idcombo}", ResponseFormat = WebMessageFormat.Json)]
            Combo ObtenerCombo(string idcombo);

            [OperationContract]
            [WebInvoke(Method = "PUT", UriTemplate = "Combos", ResponseFormat = WebMessageFormat.Json)]
            Combo ModificarCombo(Combo comboAModificar);

            [OperationContract]
            [WebInvoke(Method = "DELETE", UriTemplate = "Combos/{idcombo}", ResponseFormat = WebMessageFormat.Json)]
            void EliminarCombo(string idcombo);

            [OperationContract]
            [WebInvoke(Method = "GET", UriTemplate = "Combos/", ResponseFormat = WebMessageFormat.Json)]
            List<Combo> ListarCombos();
    }
    
}
